<template>
  <router-view></router-view>
</template>
<script>
  import AdminLayout from 'src/components/common/js/admin-layout'

  const items = [
    {
      icon: 'fa fa-shopping-cart',
      title: '商品列表',
      route: '/admin/goods/goods.html'
    },
    {
      icon: 'fa fa-cubes',
      title: '分类管理',
      route: '/admin/goods/category.html'
    },
    {
      icon: 'fa fa-list',
      title: '品牌管理',
      route: '/admin/goods/brand.html'
    },
    {
      icon: 'fa fa-tag',
      title: '规格管理',
      route: '/admin/goods/spec.html'
    },
    {
      icon: "icon icon-edit",
      title: "供应商管理",
      route: "/admin/goods/supply.html"
    }
  ]

  export default {
    name: 'AdminGoodsMain',
    mixins: [AdminLayout],
    data() {
      return {}
    },
    methods: {},
    mounted: function () {
      const me = this;
      this.setASiderItems(items)
      this.$nextTick(function () {
        me.showASider()
      });
    }
  }
</script>
